package com.gjs.user.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gjs.common.enums.entity.StatusEnum;
import com.gjs.common.enums.entity.UserOriginEnum;
import com.gjs.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author JC_Ho
 * @since 2022年3月7日
 */
@Getter
@Setter
@TableName("user")
@ApiModel(value = "User对象", description = "用户表")
public class User extends BaseEntity {
    @ApiModelProperty("用户唯一序列号")
    @TableField("user_sn")
    private String userSn;

    @ApiModelProperty("登录账号")
    @TableField("user_account")
    private String userAccount;

    @ApiModelProperty("登录密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("用户来源")
    @TableField("origin")
    private UserOriginEnum origin;

    @ApiModelProperty("状态")
    @TableField("status")
    private StatusEnum status;

}
